home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Software of the Month Club / Amiga General Interest Volume 216 (1995)(SOMC)(Disk 2 of y)[SMCxxxC30Ix].zip / Amiga General Interest Volume 216 (1995)(SOMC)(Disk 2 of y)[SMCxxxC30Ix].adf / install < prev    next >
Text File  |  1995-09-11  |  4KB  |  176 lines

  1. (SET @default-dest "Sys:")
  2. (SET default_lang 0)
  3.  
  4. (SET #needKick ("\n'Iconian' needs Kickstart Version 39 at least." ) )
  5.  
  6. (SET #startMsg ("\nWelcome to 'Iconian'\n\nThis script installs 'Iconian' on your Amiga.\n") )
  7.  
  8. (SET #destPrompt "Please choose the destination directory for 'Iconian'.\nA drawer will NOT be created.")
  9.  
  10. (SET #copyPFiles "Copying program files...")
  11.  
  12. (SET #DocPrompt "Select the directory for the documentation file.")
  13.  
  14. (SET #exitMsg ("Hope you enjoy using 'Iconian'.") )
  15.  
  16.  
  17. (if (< (/ (GETVERSION) 65536) 39)
  18.     (ABORT #needKick)
  19. )
  20.  
  21. (MESSAGE #startMsg)
  22.  
  23. (SET @default-dest
  24.     (ASKDIR (PROMPT  #destPrompt)
  25.             (HELP    askdir-help)
  26.             (DEFAULT @default-dest )))
  27.  
  28. (COPYFILES (SOURCE "Iconian")
  29.            (HELP copyfiles-help)
  30.            (DEST @default-dest )
  31.            (INFOS)
  32. )
  33.  
  34. (SET @DocDir
  35.     (ASKDIR (PROMPT  #DocPrompt)
  36.             (HELP    askdir-help)
  37.             (DEFAULT "Help:")
  38.             (NEWPATH)
  39.     )
  40. )
  41.  
  42.   
  43. (COPYFILES (SOURCE "Iconian_help.guide")
  44.            (DEST   @DocDir)
  45.            (HELP copyfiles-help)
  46.            (INFOS)
  47. )
  48.  
  49. (set classdir @default-dest)
  50. (set gaddir (tackon @default-dest "gadgets"))
  51.  
  52. (set foundclass 0)
  53. (if (exists "classes:" (NOREQ))
  54.     (
  55.         (set foundclass 1)
  56.          (set classdir "classes:")
  57.          (set gaddir "classes:gadgets")
  58.     )
  59. )
  60. (if (= foundclass 0)
  61.     (if (exists "sys:classes" (NOREQ))
  62.         (
  63.             (set foundclass 1)
  64.           (set classdir "sys:classes")
  65.           (set gaddir "sys:classes/gadgets")
  66.       )
  67.     )
  68. )
  69. (if (= foundclass 0)
  70.     (
  71.         (if (exists "libs:classes" (NOREQ))
  72.             (
  73.                 (set classdir "libs:classes")
  74.                 (set gaddir "libs:classes/gadgets")
  75.             )
  76.         )
  77.     )
  78. )
  79. (set chunky (tackon classdir "chunkyimage.class"))
  80. (set gauge (tackon classdir "gaugeimage.class"))
  81. (set popup (tackon gaddir "popup.gadget"))
  82.  
  83. (set neednew 1)
  84. (if (exists chunky (NOREQ))
  85.     (
  86.         (set existvernum (getversion chunky))
  87.         (set newvernum (getversion "classes/chunkyimage.class"))
  88.         (if (< newvernum existvernum)
  89.             (
  90.                 (if    (NOT (askbool
  91.                                         (prompt ("The existing chunkyimage.class is a newer version.\n\nDo you wish to replace it?"))
  92.                                         (default 0)
  93.                                         (help "A newer revision of the chunkyimage.class is already installed on your system.  Selecting Yes to overwrite the existing class may cause incompatibilities with other programs that rely on chunkyimage.class.")
  94.                         )
  95.                     )
  96.                     (
  97.                         (set neednew 0)
  98.                     )
  99.                 )
  100.             )
  101.         )
  102.     )
  103. )
  104. (if (= neednew 1)
  105.     (
  106.         (COPYFILES (SOURCE "classes/chunkyimage.class")
  107.         (HELP copyfiles-help)
  108.       (DEST classdir)
  109.       (INFOS)
  110.         )
  111.     )
  112. )
  113.  
  114. (set neednew 1)
  115. (if (exists gauge (NOREQ))
  116.     (
  117.         (set existvernum (getversion gauge))
  118.         (set newvernum (getversion "classes/gaugeimage.class"))
  119.         (if (< newvernum existvernum)
  120.             (
  121.                 (if    (NOT (askbool
  122.                                         (prompt ("The existing gaugeimage.class is a newer version.\n\nDo you wish to replace it?"))
  123.                                         (default 0)
  124.                                         (help "A newer revision of the gaugeimage.class is already installed on your system.  Selecting Yes to overwrite the existing class may cause incompatibilities with other programs that rely on gaugeimage.class.")
  125.                         )
  126.                     )
  127.                     (
  128.                         (set neednew 0)
  129.                     )
  130.                 )
  131.             )
  132.         )
  133.     )
  134. )
  135. (if (= neednew 1)
  136.     (
  137.         (COPYFILES (SOURCE "classes/gaugeimage.class")
  138.         (HELP copyfiles-help)
  139.       (DEST classdir)
  140.       (INFOS)
  141.         )
  142.     )
  143. )
  144.  
  145. (set neednew 1)
  146. (if (exists popup (NOREQ))
  147.     (
  148.         (set existvernum (getversion popup))
  149.         (set newvernum (getversion "gadgets/popup.gadget"))
  150.         (if (< newvernum existvernum)
  151.             (
  152.                 (if    (NOT (askbool
  153.                                         (prompt ("The existing popup.gadget is a newer version.\n\nDo you wish to replace it?"))
  154.                                         (default 0)
  155.                                         (help "A newer revision of the popup.gadget is already installed on your system.  Selecting Yes to overwrite the existing gadget may cause incompatibilities with other programs that rely on popup.gadget.")
  156.                         )
  157.                     )
  158.                     (
  159.                         (set neednew 0)
  160.                     )
  161.                 )
  162.             )
  163.         )
  164.     )
  165. )
  166. (if (= neednew 1)
  167.     (
  168.         (COPYFILES (SOURCE "gadgets/popup.gadget")
  169.         (HELP copyfiles-help)
  170.       (DEST gaddir)
  171.       (INFOS)
  172.         )
  173.     )
  174. )
  175. (Exit #exitMsg)
  176.